import dayjs from 'dayjs'

export function formatDate (date, format = 'YYYY-MM-DD HH:mm:ss') {
  const tmpDate = new Date(date)
  return dayjs(tmpDate).format(format)
}
